<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />

<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

</head>

<body>
	
	
	<div id="iframe_page">
		<div class="iframe_content">
			<div class="r_nav">
				<ul>
					<li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/index');?>">首次关注设置</a></li>
					<li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/classify');?>">自定义菜单设置</a></li>
					<li class="<?php if((ACTION_NAME) == "keyword"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/keyword');?>">关键词回复</a></li>
					<li class="<?php if((ACTION_NAME) == "token"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/token');?>">微信接口配置</a></li>
					<li class="<?php if((ACTION_NAME) == "auth"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/auth');?>">微信授权配置</a></li>
					<li class="<?php if((ACTION_NAME) == "pay"): ?>cur<?php endif; ?>"><a href="<?php echo U('Wechat/pay');?>">运费&支付管理</a></li>
				</ul>
			</div>

		
		

			

<div id="wechat_auth" class="r_con_wrap">
    <script language="javascript">$(document).ready(wechat_obj.auth_init);</script>
    <div class="tips_info">
		1. <span>订阅号并已通过微信认证</span>可使用自定义菜单。<br>
		2. <span>服务号</span>无需微信认证可直接使用自定义菜单，<span>服务号并已通过微信认证</span>可使用高级接口。<br>
		3. 在公众平台申请接口使用的<span>AppId</span>和<span>AppSecret</span>，然后填入下边表单。<br>
		4. <span>服务认证号</span>请在微信公众平台高级接口处的<span>网页服务--&gt;网页账号--&gt;网页授权获取用户基本信息</span>设置授权回调页面域名为<span><?php echo C('WEB_ABSOLUTE_URL');?></span>
	</div>
    <form id="wechat_auth_form" action="<?php echo U('auth');?>" method="post" class="r_con_form">
        <div class="rows">
            <label>AppId <span class="fc_red">*</span></label>
            <span class="input"><input name="appid" value="<?php echo ($userconfig["appid"]); ?>" type="text" class="form_input" size="35" maxlength="18" notnull></span>
            <div class="clear"></div>
        </div>
        <div class="rows">
            <label>AppSecret <span class="fc_red">*</span></label>
            <span class="input"><input name="appsecret" value="<?php echo ($userconfig["appsecret"]); ?>" type="text" class="form_input" size="35" maxlength="32" notnull></span>
            <div class="clear"></div>
        </div>
        <div class="rows">
			<label>公众号类型</label>
			<span class="input">
				<input type="radio" value="0" name="certified" <?php if($userconfig["certified"] == 0): ?>checked=""<?php endif; ?>><span class="tips">订阅号</span>
				<input type="radio" value="1" name="certified" <?php if($userconfig["certified"] == 1): ?>checked=""<?php endif; ?>><span class="tips">订阅认证号</span>
				<input type="radio" value="2" name="certified" <?php if($userconfig["certified"] == 2): ?>checked=""<?php endif; ?>><span class="tips">服务号</span>
				<input type="radio" value="3" name="certified" <?php if($userconfig["certified"] == 3): ?>checked=""<?php endif; ?>><span class="tips">服务认证号</span>			
			</span>
			<div class="clear"></div>
		</div>
        <!-- <div class="rows">
            <label>微信认证</label>
            <span class="input">
                <input type="checkbox" value="1" name="certified"  <?php if(($userconfig["certified"]) == "1"): ?>checked="checked"<?php endif; ?>/> <span class="tips">如果您的公众号已通过微信认证，请勾选此选项</span><br />
                <div class="oauth_tips">
                    <h1><strong>这个有什么用？</strong></h1>
				                    通过微信认证的公众号可以使用微信最新推出的9大新接口<br />
				                    请在微信公众平台高级接口处的“<span class="fc_red">OAuth2.0网页授权</span>​”设置授权回调页面域名为“<span class="fc_red"><?php echo C('WEB_ABSOLUTE_URL');?></span>”<br />
                    <span class="fc_red">开微信认证选项后，客户端中所有需要用户登录的页面，将直接读取用户的微信资料进行一键登录，免去用户注册的步骤</span><br />
                    <span class="fc_red">开启语音关键词回复，您的微信帐号必须已通过微信认证并在高级接口中开启了语音识别，系统将自动识别出语音内容并启用模糊匹配方式进行关键字回复</span>
                </div>
            </span>
            <div class="clear"></div>
        </div> -->
        <div class="rows">
            <label></label>
            <span class="input"><input type="submit" class="btn_green" name="submit_button" value="提交保存" /></span>
            <div class="clear"></div>
        </div>
        <input type="hidden" name="do_action" value="wechat.auth">
    </form>
</div> 


			
			</div>
			</div>
</body>
</html>